﻿	//��תҳ����ʾ
$(function(){
		$("#pageForm").submit(function(){
			var inputPage=$("#inputPage").val();
			var hiddenPagge=$("#hiddenPagge").val();
			var redQuantity=/^[1-9]+[0-9]*$/;
			if(inputPage!=null && inputPage!=''){
				var inputPageInt = parseInt(inputPage);
				var hiddenPaggeInt = parseInt(hiddenPagge);
				if(inputPageInt < 1){
					alert("没有当前页数",1.5);
					return false;
				}else if(inputPageInt > hiddenPaggeInt){
					alert("没有当前页数",1.5);
					return false;
				}else if(!redQuantity.test(inputPage)){
					alert("请输入整数",1.5);	
			        return false;
				}else{
					return true;
				}
			}
			alert("请输入整数",1.5);
			return false;
		});
	});




var form1=document.getElementById("sorlForm");
var url=form1.action;

//��ҳ
function first(){
	
	form1.action = url+"?pageingFinder.pageNo=1";
	form1.submit();
}

//��һҳ
function previous(){
	form1.action  = url+"?pageFinder.pageNo=${pageFinder.pageNo-1 }";
    form1.submit();
}

//��һҳ
function next(){
	alert("11111111111");
    form1.action  = url+"?pageFinder.pageNo=${pageFinder.pageNo+1 }";
    form1.submit();
}

//βҳ
function last(){
  form1.action  = url+"?pageFinder.pageNo=${pageFinder.pageCount }";
  form1.submit();
}